//
//  main.m
//  DogRule
//
//  Created by gzjd on 2017/5/7.
//  Copyright © 2017年 gzjd. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Person.h"
#import "Dog.h"
int main(int argc, const char * argv[]) {
    @autoreleasepool {
        // insert code here...
        NSLog(@"Hello, World!");
        Person *xiaoli=[[Person alloc]init];
        Dog *dog=[[Dog alloc] init];
        [dog setID:10];
        [xiaoli setDog:dog];
        [dog release];
        while(1){
            [[NSRunLoop currentRunLoop]run];
        }
        [xiaoli release];
        
    }
    return 0;
}
